// Decompiled by GOOSIN CO,LTD Copyright 2010 Pavel Kouznetsov.
// home page: http://www.Goosin.net
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   open_pdf.java

package crm.order;

import java.io.IOException;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.*;

public class open_pdf extends HttpServlet
{

	ServletContext application;
	HttpSession session;

	public open_pdf()
	{
	}

	public synchronized void service(HttpServletRequest request, HttpServletResponse response)
		throws IOException, ServletException
	{
		HttpSession dbSession = request.getSession();
		try
		{
			String filename = (String)dbSession.getAttribute("pdfname");
			response.sendRedirect((new StringBuilder("pdf_files/")).append(filename).toString());
		}
		catch (Exception ex)
		{
			ex.printStackTrace();
		}
	}
}
